import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus, { ElIcon } from 'element-plus'
import 'element-plus/dist/index.css'
import VueParticles from 'vue-particles'
import './assets/css/global.css'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.bubble.css'
import 'quill/dist/quill.snow.css'
var asynRouter = sessionStorage.getItem('asynRouter')
if (asynRouter !== 'undefined' && asynRouter !== null) {
    asynRouter = JSON.parse(asynRouter)
    asynRouter.forEach(item => {
        router.addRoute('Home', {
            path: '/' + item.component_path,
            name: item.name,
            component: () => import(/* webpackChunkName: "about" */ '@/views/' + item.component_path + '.vue')
        })
    })
}
createApp(App).use(store).use(router).use(ElementPlus).use(VueQuillEditor).use(ElIcon).use(VueParticles).mount('#app')
